import request from '@/axios/index.ts';

export const getMenus = ()=>{
    return request.post('/menus/list')
}

export const getMenusTree = ()=>{
    return request.post('/menus/tree')
}

export const addMenus = (data:any)=>{
    return request.post('/menus/add',data);
}

export const updateMenus = (data:any)=>{
    return request.post('/menus/update',data);
}

export const deleteMenus = (id:number)=>{
    return request.post('/menus/delete',{id});
}